<?php
class User_model extends CI_Model {

	public function add()
	{
		$this->nickname    ="sdfsdf"; // please read the below note
        $this->email  = "sdfsdfsdf";
        $this->ctime = time();

        $this->db->insert('user', $this);
	}

	public function get_last_ten_user()
    {

    	// var_dump(999);
        $query = $this->db->get('user', 10);
        return $query->result();
    }

}
